import request from '@/utils/request'
//用户列表接口
export const getUserListAPI = (params) => request('/api/admin/users', 'get', params)
//用户详情接口
export const getUserInfoAPI = (user) => request(`/api/admin/users/${user}`, 'get')
//修改用户接口
export const editUserAPI = (users, data) => request(`/api/admin/users/${users}`, 'PUT', data)
//新增用户
export const addUserAPI = (data) => request(`/api/admin/users`, 'post', data)
//启用禁用
export const lockUserAPI = (user) => request(`/api/admin/users/${user}/lock`, 'PATCH')
